Create(Factory,String,TextFormat,Single,Single,Single,Nullable<Matrix3x2>,Boolean) Method
In This Topic
Create a Gdi Compatible TextLayout. Takes a string, format, and associated constraints, and produces an object representing the result, formatted for a particular display resolution and measuring mode.
Syntax
'Declaration
Public Overloads Shared Shadows Function Create( _
ByVal As Factory, _
ByVal As System.String, _
ByVal As TextFormat, _
ByVal As System.Single, _
ByVal As System.Single, _
ByVal As System.Single, _
ByVal As System.Nullable(Of Matrix3x2), _
ByVal As System.Boolean _
) As TextLayout1
public new static TextLayout1 Create(
Factory ,
System.string ,
TextFormat ,
System.float ,
System.float ,
System.float ,
System.Nullable<Matrix3x2> ,
System.bool
)
Parameters
- factory
- an instance of Factory
- text
- An array of characters that contains the string to create a new C1.Win.DX.DirectWrite.TextLayout1 object from. This array must be of length stringLength and can contain embedded NULL characters.
- textFormat
- The text formatting object to apply to the string.
- layoutWidth
- The width of the layout box.
- layoutHeight
- The height of the layout box.
- pixelsPerDip
- The number of physical pixels per DIP (device independent pixel). For example, if rendering onto a 96 DPI device pixelsPerDip is 1. If rendering onto a 120 DPI device pixelsPerDip is 1.25 (120/96).
- transform
- An optional transform applied to the glyphs and their positions. This transform is applied after the scaling specifies the font size and pixels per DIP.
- useGdiNatural
- Instructs the text layout to use the same metrics as GDI bi-level text when set to FALSE. When set to TRUE, instructs the text layout to use the same metrics as text measured by GDI using a font created with CLEARTYPE_NATURAL_QUALITY.
See Also